<?php

namespace App\Transformers\Users;

use App\Models\UsersModel;
use League\Fractal\TransformerAbstract;

class ClientUserInfoTransformer extends TransformerAbstract
{
    public function transform(UsersModel $users) {
        return [
            'id'    => $users->id,
            'username'  =>  $users->username,
            'avatar'    =>  $users->avatar,
            'user_account'  =>  $users->user_account,
        ];
    }

}